package com.example.wod.retrofitdemo.Bean;


import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by Wod on 2016/1/16.
 */
public class total {

    /**
     * code : SUCCESS
     * info : 获取成功！
     * data : {"total_bonus":10000,"today_bonus":200,"new":[{"time":1451463835,"msg":"恭喜138459******获得100元大红包！","url":""},{"time":1451463835,"msg":"恭喜165948******在一元夺宝中获得iPhone 6s plus一台！","url":""},{"time":1451463835,"msg":"保利·新东方 红包专场正在火热进行中！","url":""}],"named":"百度","posters":{"url":"http://7xp4uq.com2.z0.glb.qiniucdn.com/20151230162213.jpg","time":5}}
     */

    private String code;
    private String info;
    /**
     * total_bonus : 10000
     * today_bonus : 200
     * new : [{"time":1451463835,"msg":"恭喜138459******获得100元大红包！","url":""},{"time":1451463835,"msg":"恭喜165948******在一元夺宝中获得iPhone 6s plus一台！","url":""},{"time":1451463835,"msg":"保利·新东方 红包专场正在火热进行中！","url":""}]
     * named : 百度
     * posters : {"url":"http://7xp4uq.com2.z0.glb.qiniucdn.com/20151230162213.jpg","time":5}
     */

    private DataEntity data;

    public void setCode(String code) {
        this.code = code;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    public DataEntity getData() {
        return data;
    }

    public static class DataEntity {
        private int total_bonus;
        private int today_bonus;
        private String named;
        /**
         * url : http://7xp4uq.com2.z0.glb.qiniucdn.com/20151230162213.jpg
         * time : 5
         */

        private PostersEntity posters;
        /**
         * time : 1451463835
         * msg : 恭喜138459******获得100元大红包！
         * url :
         */

        @SerializedName("new")
        private List<NewEntity> newX;

        public void setTotal_bonus(int total_bonus) {
            this.total_bonus = total_bonus;
        }

        public void setToday_bonus(int today_bonus) {
            this.today_bonus = today_bonus;
        }

        public void setNamed(String named) {
            this.named = named;
        }

        public void setPosters(PostersEntity posters) {
            this.posters = posters;
        }

        public void setNewX(List<NewEntity> newX) {
            this.newX = newX;
        }

        public int getTotal_bonus() {
            return total_bonus;
        }

        public int getToday_bonus() {
            return today_bonus;
        }

        public String getNamed() {
            return named;
        }

        public PostersEntity getPosters() {
            return posters;
        }

        public List<NewEntity> getNewX() {
            return newX;
        }

        public static class PostersEntity {
            private String url;
            private int time;

            public void setUrl(String url) {
                this.url = url;
            }

            public void setTime(int time) {
                this.time = time;
            }

            public String getUrl() {
                return url;
            }

            public int getTime() {
                return time;
            }
        }

        public static class NewEntity {
            private int time;
            private String msg;
            private String url;

            public void setTime(int time) {
                this.time = time;
            }

            public void setMsg(String msg) {
                this.msg = msg;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public int getTime() {
                return time;
            }

            public String getMsg() {
                return msg;
            }

            public String getUrl() {
                return url;
            }
        }
    }
}
